package com.example.orderform.lmpl;

import com.example.orderform.dao.EvaluateMapper;
import com.example.orderform.server.EvaluateServer;
import com.example.orderform.vo.Comments;
import com.example.orderform.vo.CommentsS2;
import com.example.orderform.vo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class EvaluateLmpl implements EvaluateServer {
    @Autowired
    EvaluateMapper evaluateMapper;

    @Override
    public List<Order> evaluatecha(int q,int j,int userid) {
        return evaluateMapper.evaluatecha(q, j,userid);
    }

    @Override
    public int evalcha(int userid) {
        return evaluateMapper.evalcha(userid);
    }

    @Override
    public Order evaorderxq(int orerid) {
        return evaluateMapper.evaorderxq(orerid);
    }

    @Override
    public int gad(int orderid) {
        return evaluateMapper.gad(orderid);
    }

    @Override
    public int xzdd(int orderid, String evaluationgrade, String evaluationcommodity) {
        return evaluateMapper.xzdd(orderid, evaluationgrade, evaluationcommodity);
    }
    @Override
    public List<Comments> commentsS(int userid, int spid) {
        return evaluateMapper.commentsS(userid, spid);
    }

    @Override
    public List<CommentsS2> commentsS2(int userid, int spid) {
        return evaluateMapper.commentsS2(userid, spid);
    }


    @Override
    public List<Comments> plht() {
        return evaluateMapper.plht();
    }

    @Override
    public int waipinl(int User_id, int commodity_id, String comment_content, int message_status, int comment_grade, Date comment_time) {
        return evaluateMapper.waipinl(User_id, commodity_id, comment_content, message_status, comment_grade, comment_time);
    }

    @Override
    public int neipinl(int commodity_id, int User_id, int comment_id, String reply_content, Date comment_time) {
        return evaluateMapper.neipinl(commodity_id, User_id, comment_id, reply_content, comment_time);
    }

    @Override
    public int selectsp(int orderid) {
        return evaluateMapper.selectsp(orderid);
    }

    @Override
    public int idd(int User_id, int commodity_id, String comment_content, int message_status, int comment_grade, Date comment_time) {
        return evaluateMapper.idd(User_id, commodity_id, comment_content, message_status, comment_grade, comment_time);
    }


}
